package com.goldmantis.alitrip.common.annotation;

import com.goldmantis.alitrip.common.sysenum.EnumLogCatagory;
import com.goldmantis.alitrip.common.sysenum.EnumOperationType;

/**
 * @Author:Shmily
 * @Description: 获取方法上日志信息的基础信息
 * @Date:Create in 17:32 2018/2/26
 */
public class LogMetaInfo {

    /**
     * 操作的具体名称
     * @return
     */
    public String operationName;

    /**
     * 日志分类，具体参考{@link EnumLogCatagory} ，默认是访问类型。
     * @return
     */
    public EnumLogCatagory logCatagory;


    /**
     *操作分类，具体参考{@link EnumOperationType}
     * @return
     */
    public EnumOperationType operationType;


    public String getOperationName() {
        return operationName;
    }

    public void setOperationName(String operationName) {
        this.operationName = operationName;
    }

    public EnumLogCatagory getLogCatagory() {
        return logCatagory;
    }

    public void setLogCatagory(EnumLogCatagory logCatagory) {
        this.logCatagory = logCatagory;
    }

    public EnumOperationType getOperationType() {
        return operationType;
    }

    public void setOperationType(EnumOperationType operationType) {
        this.operationType = operationType;
    }

    @Override
    public String toString() {
        return "LogInfo{" +
                "operationName='" + operationName + '\'' +
                ", logCatagory=" + logCatagory +
                ", operationType=" + operationType +
                '}';
    }



}
